package com.woniuxy01;

/**
 * @author 作者
 * @create 2025-05-30 9:33
 */
public class Test02 {
    public static void main(String[] args) {
        Cat cat1 = new Cat();
        cat1.setAge(1);
        cat1.setName("cat1");
        System.out.println(cat1.toString());
        Dog dog1 = new Dog();
        dog1.setAge(1);
        dog1.setName("dog1");
        System.out.println(dog1.toString());
    }
}
